package ooday05_1;
/* 复杂版枚举 */
public enum Seasons {
    // 属性              名称               描述
    SPRING("春天","春暖花开"),
    SUMMER("夏天","夏日炎炎"),
    AUTUMN("秋天","秋高气爽"),
    WINTER("冬天","白雪皑皑");
    private String seasonName;
    private String seasonDesc;
    //构造方法默认为private 私有的
    //枚举中构造方法只能私有
    Seasons(String seasonName,String seasonDesc){
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }
    //获取季节名称
    public String getSeasonName(){ return seasonName; }
    //获取季节名称
    private void setSeasonName(String seasonName){ this.seasonDesc = seasonName; }
    //设置季节描述
    public String getSeasonDesc(){ return seasonDesc; }
    //设置季节描述
    private void setSeasonDesc(String seasonDesc){ this.seasonDesc = seasonDesc; }
}
